package com.xt.LibaryDeskManager.dao;

import com.xt.LibaryDeskManager.dto.DepartmentDto;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DepartMentMapper {

    /**
     * 根据上级部门获取本级所有部门
     * @return
     * @throws Exception
     */
    List<DepartmentDto> getAll(int pid) throws Exception;
}
